//
//  SaveTableViewCell.m
//  Fragrance
//
//  Created by yinzhongyuan on 15/5/30.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "SaveTableViewCell.h"

@implementation SaveTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView
{
    self.saveLabel = [[[UILabel alloc]init] autorelease];
    [self.contentView addSubview:self.saveLabel];
    
    self.priceLabel = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.priceLabel];
    
    self.describeLabel = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.describeLabel];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.saveLabel.frame = CGRectMake(0, 10, self.frame.size.width, 40);
    self.saveLabel.textAlignment = NSTextAlignmentCenter;
    self.saveLabel.backgroundColor = [UIColor clearColor];
    
    self.priceLabel.frame = CGRectMake(120, 40, 120, 30);
    self.priceLabel.backgroundColor = [UIColor clearColor];
    
    self.describeLabel.frame = CGRectMake(35, 70, self.frame.size.width - 70, 50);
    self.describeLabel.backgroundColor = [UIColor clearColor];
    self.describeLabel.font = [UIFont systemFontOfSize:15.0];
    self.describeLabel.numberOfLines = 20;
    [self.describeLabel sizeToFit];
}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
